package org.dromara.oce.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.oce.domain.OceSite;

import java.io.Serial;
import java.io.Serializable;



/**
 * 橙子建站落地页视图对象 oce_site
 *
 * @author dsbb
 * @date 2025-06-10
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = OceSite.class)
public class OceSiteVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 建站id
     */
    @ExcelProperty(value = "建站id")
    private Long siteId;

    /**
     * 管家账号id
     */
    @ExcelProperty(value = "管家账号id")
    private Long accountId;

    /**
     * 广告主id
     */
    @ExcelProperty(value = "广告主id")
    private Long advertiserId;

    /**
     * 建站名称
     */
    @ExcelProperty(value = "建站名称")
    private String name;

    /**
     * 建站状态：ENABLE-已发布，已生效；DISABLE-不可用；DELETE-已删除；EDIT-未发布，未生效；FORBIDDEN-惩罚广告主，站点下线；AUDIT_ACCEPTED-审核通过；AUDIT_REJECTED-审核拒绝；AUDIT_BANNED-审核封禁；AUDIT_DOING-审核中；
     */
    @ExcelProperty(value = "建站状态：ENABLE-已发布，已生效；DISABLE-不可用；DELETE-已删除；EDIT-未发布，未生效；FORBIDDEN-惩罚广告主，站点下线；AUDIT_ACCEPTED-审核通过；AUDIT_REJECTED-审核拒绝；AUDIT_BANNED-审核封禁；AUDIT_DOING-审核中；")
    private String status;

    /**
     * 建站类型：MICRO_APP-小程序；WECHAT_APPLET-微信小程序组件；
     */
    @ExcelProperty(value = "建站类型：MICRO_APP-小程序；WECHAT_APPLET-微信小程序组件；")
    private String siteType;

    /**
     * 建站类别：SITE_FUNC_TYPE_NEW_MODULAR-智能建站；SITE_FUNC_TYPE_NORMAL-普通建站；
     */
    @ExcelProperty(value = "建站类别：SITE_FUNC_TYPE_NEW_MODULAR-智能建站；SITE_FUNC_TYPE_NORMAL-普通建站；")
    private String functionType;

    /**
     * 站点缩略图
     */
    @ExcelProperty(value = "站点缩略图")
    private String thumbnail;

    /**
     * 投放地址
     */
    private String url;

    public void setSiteId(Long siteId) {
        this.siteId = siteId;
        this.url = "https://www.chengzijianzhan.com/tetris/page/"+siteId;
    }
}
